// import httpRequest from '@/utils/request'

// export function pay(orderSn) {
// 	console.log('pay接收到的参数:',orderSn); // 添加日志，确认参数是否正确传递
// 	return httpRequest.request({
// 		url: `/order/pay`,
// 		method: 'get',
// 		data: {orderSn}
// 	});
// }
import httpRequest from '@/utils/request'

export function pay(orderSn, returnUrl) {
	return httpRequest.request({
		url: '/order/pay',
		method: 'get',
		params: {
			orderSn,
			returnUrl
		}
	});
}


export function refund(orderSn) {
	return httpRequest.request({
		url: '/order/refund',
		method: 'get',
		params: {
			orderSn
		}
	});
}